package com.huangliusong.web.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author huangliusong
 * @since 2018/10/4
 * {@link RestController}
 */
@RestController
public class HelloWorldController {


    @GetMapping("/hi")
    public String hi(){
        return "hi";
    }

    @GetMapping(value = "/hello")
    public String hello(@RequestParam("msg")String msg){
        return "hello hls"+msg;
    }
}
